<%@ taglib uri="/WEB-INF/tags/c.tld" prefix="c" %>	
<%@ taglib uri="/WEB-INF/tags/fn.tld" prefix="fn" %>	
<%@ taglib uri="/WEB-INF/tags/fmt.tld" prefix="fmt" %>	
<%@ taglib uri="/WEB-INF/tags/spring.tld" prefix="spring" %>	
<%@ taglib uri="/WEB-INF/tags/spring-form.tld" prefix="form" %>



<div>
  <jsp:directive.page contentType="text/html;charset=UTF-8" />
  <spring:message var="title" code="registration_state1_title" htmlEscape="false" />

    <h1>Welcome <c:out value="${registrationForm.kurancyUser.firstName} ${registrationForm.kurancyUser.lastName}"/></h1>
    <p><img src="http://graph.facebook.com/${registrationForm.kurancyUser.facebookUserId}/picture"/></p>
    
    <p>
      <h1><spring:message code="registration_state1_message" /></h1>
    </p>
    <form:form commandName="registrationForm" action="/registration/complete">
    	<form:errors path="*"></form:errors>
      <div class="submit">
        <spring:message var="cancel" code="button_cancel" htmlEscape="false" />
        <spring:message var="proceed" code="button_proceed" htmlEscape="false" />
        <p><spring:message code="registration.input.first.name"/> <form:input path="kurancyUser.firstName" readonly="true"/></p>
        <p><spring:message code="registration.input.last.name"/> <form:input path="kurancyUser.lastName" readonly="true"/></p>
        <p><spring:message code="registration.input.email"/> <form:input path="kurancyUser.email" readonly="true"/></p>
        <p><spring:message code="registration.input.city"/> <form:input path="kurancyUser.city"/></p>
        <p><spring:message code="registration.input.state"/> <form:select path="kurancyUser.stateAbbr" items="${states}" itemLabel="name" itemValue="value"></form:select></p>
        <form:hidden path="kurancyUser.facebookUserId"/>
        <input type="submit" id="cancel" name="_eventId_cancel" value='<spring:message code="registration.input.button.cancel"/>' />
        <input type="submit" id="success" name="_eventId_success" value='<spring:message code="registration.input.button.submit"/>' />
      </div>
    </form:form>
</div>
